/**
 * 
 */
package org.bspv.pharma.web.bean.node;

import org.bspv.pharma.web.bean.StockStatus;



/**
 * @author guillaume
 *
 */
public class TypeNode extends AbstractNode implements StatusNode{

	protected StockStatus stockStatus;
	protected int nbSupplies;
	protected int nbSuppliesExpected;
	
	public TypeNode(Long id) {
		this.id = id;
		nbSupplies = 0;
		nbSuppliesExpected = 0;
	}

	/**
	 * @return the stockStatus
	 */
	public StockStatus getStockStatus() {
		return stockStatus;
	}

	/**
	 * @param stockStatus the stockStatus to set
	 */
	public void setStockStatus(StockStatus stockStatus) {
		this.stockStatus = stockStatus;
	}

	/**
	 * @return the nbSupplies
	 */
	public int getNbSupplies() {
		return nbSupplies;
	}

	/**
	 * @param nbSupplies the nbSupplies to set
	 */
	public void setNbSupplies(int nbSupplies) {
		this.nbSupplies = nbSupplies;
	}

	/**
	 * @return the nbSuppliesExpected
	 */
	public int getNbSuppliesExpected() {
		return nbSuppliesExpected;
	}

	/**
	 * @param nbSuppliesExpected the nbSuppliesExpected to set
	 */
	public void setNbSuppliesExpected(int nbSuppliesExpected) {
		this.nbSuppliesExpected = nbSuppliesExpected;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return name + " (" + nbSupplies +")";
	}
	
	

}
